home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / dsp / dr.bub / 96000.lha / 96000 / appb / b16.asm < prev    next >
Assembly Source File  |  1992-04-28  |  2KB  |  27 lines

  1. ; This program was originally published in the Motorola DSP96002 Users Manual
  2. ; and is provided under a DISCLAIMER OF WARRANTY available from Motorola DSP
  3. ; Operation, 6501 William Cannon Drive West, Austin, Texas 78735-8598.  For
  4. ; more information, refer to the DSP96002 Users Manual, Appendix B, DSP
  5. ; Benchmarks.
  6. ;
  7.  ;B.1.6    Real * Complex Correlation Or Convolution (FIR Filter)  
  8. ;   cr(n) + jci(n) = SUM(I=0,...,N-1) {( ar(I) + jai(I)) * b(n-I)} 
  9. ;   cr(n) = SUM(I=0,...,N-1) { ar(I) * b(n-I) } 
  10. ;   ci(n) = SUM(I=0,...,N-1) { ai(I) * b(n-I) } 
  11. ;
  12. ;                                                           Program    ICycles
  13. ;                                                           Words 
  14.        move          #aaddr,r0                                    ;    1          1 
  15.        fclr   d0     #baddr+n,r4                                  ;    1          1 
  16.        fclr   d1                    x:(r0),d4.s                   ;    1          1 
  17.        fclr   d2                    x:(r4)-,d5.s     y:(r0)+,d6.s ;    1          1 
  18.        do     #n,end                                              ;    2          3 
  19.        fmpy d4,d5,d2  fadd.s d2,d1  x:(r0),d4.s                   ;    1          1 
  20.        fmpy d6,d5,d2  fadd.s d2,d0  x:(r4)-,d5.s     y:(r0)+,d6.s ;    1          1 
  21. end 
  22.                       fadd.s d2,d1                            ;    1          1 
  23. ;                                                            ;     ---        --- 
  24. ;                                                          Totals     9          2N+8 
  25. ;                                                                (10        2N+9) 
  26.